package com.springapp.mvc.dao;


import com.springapp.mvc.entity.Group;
import com.springapp.mvc.entity.Role;

import java.util.List;

/**
 * Created by nkrivko on 19.12.2014.
 */
public interface RoleDao {

    Role getRoleById(long id);

    List<Group> getGroupsByRoleId(Long roleId);

    long createRole(String roleName);

    Role getRoleByName(String name);

    List<Role> getAllRoles();
}
